﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;
using System.Net;

public partial class Contact : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void OnSubmit(object sender, EventArgs e)
    {
        SendMailHelper sendMail = new SendMailHelper();
        bool value = sendMail.Send(Name.Value, From_Mail.Value, "Office@revio.ge", Input_text.Value);

        if (value)
            Script.Text = "<script>alert('mail-გაიგზავნა წარმატებით!');</script>";
        else
            Script.Text = "<script>alert('mail-გაგზავნისას მოხდა შეცდომა!');</script>";

    }

}